﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileService
{
    public class FolderEnum
    {
        /**
         * 临时文件夹
         */
        public const int TEMP = 0;
        /**
         * 图片文件夹
        */
        public const int IMAGE = 1;
        /**
         * 视频
         */
        public const int VIDEO = 2;

        private static string[] folders = new String[]{
		    "temp",
		    "File\\images",
		    "File\\video",
        };

        /**
         * 根据FolderEnum获取文件存放路径
         * @param FolderEnum
         * @return 文件存放路径,如果没有返回null
         */
        public static string getPathfrom(int FolderEnum)
        {
            try
            {
                return folders[FolderEnum];
            }
            catch (Exception)
            {
                return "";
            }
        }
    }
}
